package com.yiduo.outpost.core.web.exception;

import org.springframework.context.MessageSource;

/**
 * @author yanwen
 */
public class NullableExceptionTranslator implements ExceptionTranslator {
    @Override
    public boolean support(Throwable error) {
        return error == null;
    }

    @Override
    public String translateException(Throwable error, MessageSource messageSource) {
        return null;
    }
}
